public class shapeTest {
    public static void main(String[] args) {
        Rectangle rectangle = new Rectangle(3.0, 4.0);
        Circle circle = new Circle(1.0);
        rectangle.drawing();
        System.out.println("该长方形的表面积为" + rectangle.getArea());
        System.out.println("该长方形的周长为" + rectangle.getPrimeter());
        circle.drawing();
        System.out.println("该圆形的表面积为" + circle.getArea());
        System.out.println("该圆形的周长为" + circle.getPrimeter());

    }
}
